package com.gzhryc.net_marketing.api.protocol.account;

import com.gzhryc.common.NumberTools;
import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CloudPayAccountOperateListResponse extends SecurityResponse<CloudPayAccountOperateListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public CloudPayAccountOperateListResponse() {
        this.body = new Body();
    }

    public CloudPayAccountOperateListResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public CloudPayAccountOperateListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long total;
        private List<OperateItem> operateItemList;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public List<OperateItem> getOperateItemList() {
            return operateItemList;
        }

        public void setOperateItemList(List<OperateItem> operateItemList) {
            this.operateItemList = operateItemList;
        }
    }

    public static class OperateItem {

        private Long id;
        private Integer moneyType;
        private String moneyTypeName;
        private Integer money;
        private Integer type;
        private String typeName;
        private Integer operatorType;
        private String operatorTypeName;
        private String operatorName;
        private String operateNote;
        private Date createDate;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Integer getMoneyType() {
            return moneyType;
        }

        public void setMoneyType(Integer moneyType) {
            this.moneyType = moneyType;
        }

        public Integer getMoney() {
            return money;
        }

        public void setMoney(Integer money) {
            this.money = money;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Integer getOperatorType() {
            return operatorType;
        }

        public void setOperatorType(Integer operatorType) {
            this.operatorType = operatorType;
        }

        public String getOperatorName() {
            return operatorName;
        }

        public void setOperatorName(String operatorName) {
            this.operatorName = operatorName;
        }

        public String getOperateNote() {
            return operateNote;
        }

        public void setOperateNote(String operateNote) {
            this.operateNote = operateNote;
        }

        public Date getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Date createDate) {
            this.createDate = createDate;
        }

        public String getMoneyTypeName() {
            return moneyTypeName;
        }

        public void setMoneyTypeName(String moneyTypeName) {
            this.moneyTypeName = moneyTypeName;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public String getOperatorTypeName() {
            return operatorTypeName;
        }

        public void setOperatorTypeName(String operatorTypeName) {
            this.operatorTypeName = operatorTypeName;
        }

        public String getMoneyStr(){
            return NumberTools.getMoneyStr(this.money);
        }
    }
}
